<%
@menulinks_array = [
{:label => "Student",             :url => {:controller => "main", :action => "index", :user_profile => "student"} },
{:label => "Employer",            :url => {:controller => "main", :action => "index", :user_profile => "employer"} },
{:label => "Housing provider",    :url => {:controller => "main", :action => "index", :user_profile => "housing-provider"} },
#{:label => "Education provider",  :url => {:controller => "main", :action => "index", :user_profile => "education-provider"} },
{:label => "Coaching provider",   :url => {:controller => "main", :action => "index", :user_profile => "coaching-provider"} },
{:label => "Other",               :url => {:controller => "main", :action => "index", :user_profile => "other"} },
]
-%>
<%
params[:user_profile] = (@menulinks_array.collect{|menu_link| menu_link[:url][:user_profile]}.include?(params[:user_profile])) ? params[:user_profile] : @menulinks_array.first[:url][:user_profile]
%>
<ul>
<%@menulinks_array.each do |e| -%>
  <%="<li class='#{((params[:user_profile] == e[:url][:user_profile]) ? "selected" : "")}'> #{link_to(e[:label],e[:url])} </li>" -%>
<%end -%>
</ul>